package com.example.demo.domain;

import java.sql.Timestamp;

public class Article {
	private Long aid;
	private Integer uid;
	private String title;
	private String content;
	/**文章类别/栏目**/
	private Short category;
	private Timestamp time;
	/**阅读量**/
	private Integer readCounts;
	/**文章是否被锁定**/
	private Boolean isEnable;
	/**文章是否是转载的**/
	private Boolean isRepost;
	
	public Long getAid() {
		return aid;
	}
	public void setAid(Long aid) {
		this.aid = aid;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getTime() {
		return time;
	}
	public void setTime(Timestamp time) {
		this.time = time;
	}
	public Boolean getIsEnable() {
		return isEnable;
	}
	public void setIsEnable(Boolean isEnable) {
		this.isEnable = isEnable;
	}
	public Boolean getIsRepost() {
		return isRepost;
	}
	public void setIsRepost(Boolean isRepost) {
		this.isRepost = isRepost;
	}
	public Integer getReadCounts() {
		return readCounts;
	}
	public void setReadCounts(Integer readCounts) {
		this.readCounts = readCounts;
	}
	@Override
	public String toString() {
		return "Article [aid=" + aid + ", uid=" + uid + ", title=" + title + ", content=" + content + ", time=" + time
				+ ", readCounts=" + readCounts + ", isEnable=" + isEnable + ", isRepost=" + isRepost + "]";
	}
	public Short getCategory() {
		return category;
	}
	public void setCategory(Short category) {
		this.category = category;
	}
	
}
